.move-appear,
.move-enter {
  opacity: 0;
  animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-duration: 2.5s;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.move-leave {
  animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  animation-duration: .5s;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.move-appear.move-enter-active,
.move-enter.move-enter-active {
  animation-name: moveLeftIn;
  animation-play-state: running;
}

.move-leave.move-leave-active {
  animation-name: moveRightOut;
  animation-play-state: running;
}
@keyframes moveLeftIn {
  0% {
    transform-origin: 0 0;
    transform: translateX(30px);
    opacity: 0;
    background: #fff6de;
  }

  20% {
    transform-origin: 0 0;
    transform: translateX(0);
    opacity: 1;
  }

  80% {
    background: #fff6de;
  }

  100% {
    background: transparent;
    opacity: 1;
  }
}
@keyframes moveRightOut {
  0% {
    transform-origin: 0 0;
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform-origin: 0 0;
    transform: translateX(-30px);
    opacity: 0;
  }
}

.br-table {

  font-size: 12px;
  transition: opacity .3s ease;
  position: relative;

  .br-table-scroll {
    overflow: auto;

    table {
      width: auto;
      min-width: 100%;
    }
  }

  .br-table-header {
    overflow: hidden;
    background: #f7f7f7;
  }
}

.br-table-fixed-header {
  .br-table-body {
    background: #fff;
    position: relative;
  }

  .br-table-body-inner {
    height: 100%;
    overflow: scroll;
  }

  .br-table-scroll .br-table-header {
    overflow-x: scroll;
    padding-bottom: 20px;
    margin-bottom: -20px;
    overflow-y: scroll;
    box-sizing: border-box;
  }
}

.br-table-fixed-columns-in-body {
  visibility: hidden;
  pointer-events: none;
}

.br-table {
  .br-table-title {
    padding: $base-gap-of-y $base-gap-of-x;
  }

  &-body {
    border: 1px solid $table-border-color;
  }

  .br-table-content {
    position: relative;
  }

  .br-table-footer {
    padding: $base-gap-of-y $base-gap-of-x;
  }

  .br-table-placeholder {
    padding: $base-gap-of-y $base-gap-of-x;
    background: #fff;
    text-align: center;
    position: relative;
    border: 1px solid $table-border-color;
    border-top: 0;
  }

  .br-table-placeholder-fixed-columns {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: transparent;
    pointer-events: none;
  }

  table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
  }

  thead th {
    // 表头总是居中
    text-align: center !important;
  }

  td,
  th {
    border: 1px solid $table-cell-border-color;
    vertical-align: middle;
    padding: $base-gap-of-y $base-gap-of-x;
    white-space: normal;

    &:first-child {
      border-left: 0;
    }

    &:last-child {
      border-right: 0;
    }
  }

  th {
    height: 40px;
    background: #f2f2f2;
    transition: background .3s ease;
    border-bottom: 0;
  }

  td {
    height: 38px;
    border-top: 0;
    border-bottom: 1px solid $table-cell-border-color;

    &:empty:after {
      content: '.';
      visibility: hidden;
    }
  }

  tr {
    transition: all .3s ease;

    &.br-table-row-hover,
    &:hover {
      background: $table-tr-hover-bg;
    }

    // 最后一行不需要边线
    &:last-child td {
      border-bottom: 0;
    }

    &:first-child th {
      border-top: 0;
    }
  }

  &--no-vertical-border {
    td,
    th:not(.grouping) {
      border-left: 0;
      border-right: 0;
    }
  }
}

.br-table-expand-icon-col {
  width: 34px;
}

.br-table-expanded-row-expand-icon,
.br-table-row-expand-icon {
  cursor: pointer;
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
  border: 1px solid #e9e9e9;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: #fff;
}

.br-table-expanded-row-spaced,
.br-table-row-spaced {
  visibility: hidden;
}

.br-table-expanded-row-spaced:after,
.br-table-row-spaced:after {
  content: '.';
}

.br-table-expanded-row-expanded:after,
.br-table-row-expanded:after {
  content: '-';
}

.br-table-expanded-row-collapsed:after,
.br-table-row-collapsed:after {
  content: '+';
}

tr.br-table-expanded-row {
  background: #f7f7f7;

  &:hover {
    background: #f7f7f7;
  }
}

.br-table-column-hidden {
  display: none;
}

.br-table-next-columns-page,
.br-table-prev-columns-page {
  cursor: pointer;
  color: #666;
  z-index: 1;
}

.br-table-next-columns-page:hover,
.br-table-prev-columns-page:hover {
  color: #2db7f5;
}

.br-table-next-columns-page-disabled,
.br-table-prev-columns-page-disabled {
  cursor: not-allowed;
  color: #999;
}

.br-table-next-columns-page-disabled:hover,
.br-table-prev-columns-page-disabled:hover {
  color: #999;
}

.br-table-prev-columns-page {
  margin-right: 8px;

  &:before {
    content: '<';
  }
}

.br-table-next-columns-page {
  float: right;

  &:before {
    content: '>';
  }
}

.br-table-fixed-left,
.br-table-fixed-right {
  position: absolute;
  top: 0;
  overflow: hidden;
}

.br-table-fixed-left table,
.br-table-fixed-right table {
  width: auto;
  background: #fff;
}

.br-table-fixed-left {
  left: 0;
  box-shadow: 4px 0 4px rgba(100, 100, 100, 0.1);

  .br-table-body-inner {
    margin-right: -20px;
    padding-right: 20px;
  }
}

.br-table-fixed-header .br-table-fixed-left .br-table-body-inner {
  padding-right: 0;
}

.br-table-fixed-right {
  right: 0;
  box-shadow: -4px 0 4px rgba(100, 100, 100, 0.1);

  .br-table-expanded-row {
    color: transparent;
    pointer-events: none;
  }
}

.br-table {
  &.br-table-scroll-position-left .br-table-fixed-left,
  &.br-table-scroll-position-right .br-table-fixed-right {
    box-shadow: none;
  }
}
